package com.qyhl.webtv.module_microvideo.shortvideo.classic;

import com.qyhl.webtv.commonlib.entity.microvideo.ClassicHomeBean;

public class ClassicHomePresenter implements ClassicHomeContract.ClassicHomePresenter {
    private final ClassicHomeActivity mView;
    private final ClassicHomeModel mModel;

    public ClassicHomePresenter(ClassicHomeActivity view) {
        this.mView = view;
        this.mModel = new ClassicHomeModel(this);
    }

    @Override
    public void getHomeData() {
        mModel.getHomeData();
    }

    @Override
    public void setHomeData(ClassicHomeBean bean) {
        mView.setHomeData(bean);
    }


    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
